package com.sunk.springcloud.dao;

import com.sunk.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

@Mapper
public interface OrderDao extends BaseMapper<Order> {
    //1 新建订单
    void create(Order order);

    //2 修改订单状态，从0到1
    void update(@Param("userId")Long userId, @Param("status")Integer status);

}
